<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-19 16:01:09
 * @Last Modified by:   Wang Chunsheng 2192138785@qq.com
 * @Last Modified time: 2020-03-30 13:21:21
 */

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $model \app\models\forms\ConfigurationForm */
/* @var $this \yii\web\View */

$this->title = Yii::t('app', '百度SDK设置');
?>
<div class="firetech-main" style="margin-top:20px;">
    <div class="panel panel-default">
        <div class="box-body">
            <div class="dd-member-create">
                <?php $form = ActiveForm::begin(); ?>

                <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
                    <?= $form->field($model, 'storeId')->textInput(['maxlength' => true]) ?>
                    <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
                    <?= $form->field($model, 'hotSearch')->textInput(['maxlength' => 255]) ?>
                    <?= $form->field($model, 'notice')->textInput(['maxlength' => 50]) ?>

                    <?= $form->field($model, 'distance')->textInput() ?>
                </div>


                <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
                    <?= $form->field($model, 'address')->textInput(['maxlength' => 40]) ?>
                    <?= $form->field($model, 'mobile')->textInput() ?>
                    <?= $form->field($model, 'startingPrice')->textInput() ?>
                    <?= $form->field($model, 'shippingDees')->textInput() ?>
                    <?= $form->field($model, 'lng_lat')->hint('<a href="https://lbs.amap.com/console/show/picker" target="_block">查看经纬度</a>')->textInput([
                        'maxlength' => 100,
                        'addon' => ['prepend' => ['content' => '@']]
                    ]) ?>

                </div>

                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <?= $form->field($model, 'describe')->textarea(['row' => 3, 'maxlength' => 120]) ?>
                    <?= $form->field($model, 'service')->textInput() ?>
                    <?= $form->field($model, 'sendtime')->textInput() ?>
                    <?= $form->field($model, 'intro')->textInput() ?>

                    <?= $form->field($model, 'logo')->widget('manks\FileInput', []); ?>
                    <?= $form->field($model, 'surroundings')->widget('manks\FileInput', [
                        'clientOptions' => [
                            'pick' => [
                                'multiple' => true,
                            ]
                        ]
                    ])->label('商家环境'); ?>

                    <?= $form->field($model, 'banner')->widget('manks\FileInput', []); ?>

                    <?= $form->field($model, 'certificate')->widget('manks\FileInput', ['clientOptions' => [
                        'pick' => [
                            'multiple' => true,
                        ]
                    ]])->label('资质证书'); ?>
                </div>



                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                    <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">

                    </div>

                    <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
                        <?php echo Html::submitButton(Yii::t('app', '保存'), ['class' => 'btn btn-success btn-block']) ?>

                    </div>

                </div>



                <?php ActiveForm::end(); ?>

            </div>
        </div>
    </div>
</div>